﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Layouts/Form.Master" CodeBehind="ModuleEdit.aspx.cs" Inherits="Bingosoft.WebApp.Modules.SecurityConsole.Privilege.ModuleEdit" %>
<asp:Content ContentPlaceHolderID="head" ID="idFormTitle" runat="server">
    <title><%=Request["title"]%></title>
</asp:Content>
<asp:Content ContentPlaceHolderID="Content" ID="idFormMain" runat="server">
    <!-- 页面头部 -->
	        <div class="header">
	            <h1><%=Request["title"]%></h1>
	        </div>

    <web:SmartFormView ID="SmartFormView1" runat="server" DataKeyNames="Id" DataSourceID="SmartDataSource1" Width="100%">        
        <InsertItemTemplate></InsertItemTemplate>
        <EditItemTemplate></EditItemTemplate>
        <ItemTemplate>
         <asp:HiddenField ID='Id' runat='server' Value='<%# Bind("Id") %>' />
         <asp:HiddenField ID='Parent' runat='server' Value='<%# Bind("Parent") %>' />
          <div>
            <table cellpadding='2' cellspacing='1' width='100%' class="formitem">
                <caption>上级节点：<%=Request.Params["ParentName"] %></caption>
                <tr>
                    <th>
                        模块名称:<font color='red'>*</font>
                    </th>
                    <td>
                        <asp:TextBox ID='Name' runat='server' Text='<%# Bind("Name") %>' Width='90%'
                            validator="required,length[1,150]"></asp:TextBox>
                    </td>
                </tr>               
            </table>
        </div>
        </ItemTemplate>
    </web:SmartFormView>
    
    <web:SmartSqlDataSource ID="SmartDataSource1" runat="server" SelectCommand="privilege.module.select"
     SelectCommandAutoPageWrap="false">        
    </web:SmartSqlDataSource>

    <!-- 页脚区域 -->
	<div class="footer">
		<asp:Button ID="SaveButton" runat="server" Text="确定" 
            OnClientClick="return validateForm();" onclick="SaveModule"/>        
        <asp:Button ID="CloseButton" runat="server" Text="关闭" OnClientClick="return closeForm();" />        
	</div>
</asp:Content>

    